package top.fzqblog.function

import top.fzqblog.anotherfunc.sum


/**
 * Created by 抽离 on 2017/8/2 0002.
 */
fun reformat(str: String, normalizeCase: Boolean = true,
             upperCaseFirstLetter: Boolean = true,
             divideByCamelHumps: Boolean = false,
             wordSeparator: Char = ' ') {
    System.out.println("reformat：" + str)
}

fun read(b: Array<Byte>, off: Int = 0, len: Int = b.size ) {
    System.out.println("read：" + b.forEach(::println))
}

fun double(x: Int) = x * 2

fun main(args: Array<String>) {
    reformat("str")

    reformat("str",
            normalizeCase = true,
            upperCaseFirstLetter = true,
            divideByCamelHumps = false,
            wordSeparator = '_'
    )

    read(arrayOf(1, 2))

    print(double(2))

    sum(1, 2)//可直接调用其他包下的顶级函数
}